package model

type Takeout struct {
	Id                int     `json:"id" gorm:"type:int(11);primary_key;AUTO_INCREMENT;not null"`
	MealProductsName  string  `json:"meal_products_name;" gorm:"type:varchar(50);not null;comment:餐品名称"`
	MealProductsImage string  `json:"meal_products_image;" gorm:"type:varchar(50);not null;comment:餐品图片"`
	MealProductsPrice float64 `json:"meal_products_price;" gorm:"type:decimal(10,2);not null;comment:餐品价格"`
	MealProductsStock int     `json:"meal_products_stock;" gorm:"type:int(20);not null;comment:库存"`
	IsHot             int     `json:"is_hot" gorm:"type:int(20);not null;comment:人气热卖"`
	IsPremium         int     `json:"is_premium" gorm:"type:int(20);not null;comment:精品推荐"`
	IsSetMenu         int     `json:"is_set_menu" gorm:"type:int(20);not null;comment:精选套餐"`
	Status            int     `json:"status" gorm:"type:int(20);not null;comment:状态 1-上架 2-下架"`
}
